<?php
require_once 'init_app.php';

set_time_limit(0); 

// Одежда - для женщин, мужчин и детей
/*$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export/?user=Sianukvil&code=bc752de506&region=RU&price_from=&price_to=&category=312&category=1702&category=1848&keyword=&format=xml';
$n = Model_ProductParser_Admitad::instance()->parse($url);
echo 'General - '.$n."\n"; 
echo "---\n";  */    

// Wildberries
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4102&format=xml';
$shop = ORM::factory('shop', 4102);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Wildberries - '.$n."\n";    
echo "---\n";

// Lamoda
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1001&format=xml';
$shop = ORM::factory('shop', 1001);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Lamoda - '.$n."\n"; 
echo "---\n";

// Domalina 
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=6129&format=xml';
$shop = ORM::factory('shop', 10726);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Domalina - '.$n."\n"; 
echo "---\n";

// Quelle 
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=515&format=xml';
$shop = ORM::factory('shop', 515);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Quelle - '.$n."\n"; 
echo "---\n";

// Halens
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=743&format=xml';
$shop = ORM::factory('shop', 743);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Halens - '.$n."\n";
echo "---\n"; 

// YOOX
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5057&format=xml';
$shop = ORM::factory('shop', 5057);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'YOOX - '.$n."\n";
echo "---\n";    

// Stylepit
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5533&format=xml'; 
$shop = ORM::factory('shop', 5533);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Stylepit - '.$n."\n";
echo "---\n";  

// Rendez Vous
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5441&format=xml'; 
$shop = ORM::factory('shop', 5441);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Rendez Vous - '.$n."\n";
echo "---\n";  

// ATLAS FOR MEN
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2694&format=xml'; 
$shop = ORM::factory('shop', 10728);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'ATLAS FOR MEN - '.$n."\n";
echo "---\n"; 

// FUNDAY
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=8880&format=xml'; 
$shop = ORM::factory('shop', 8880);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'FUNDAY - '.$n."\n";
echo "---\n";

// Kira Plastinina
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1857&format=xml'; 
$shop = ORM::factory('shop', 1857);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Kira Plastinina - '.$n."\n";
echo "---\n"; 

// Quiksilver
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=6303&format=xml'; 
$shop = ORM::factory('shop', 6303);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Quiksilver - '.$n."\n";
echo "---\n"; 

// LOVE REPUBLIC
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5156&format=xml'; 
$shop = ORM::factory('shop', 5156);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'LOVE REPUBLIC - '.$n."\n";
echo "---\n"; 

// KupiVIP
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=153&format=xml'; 
$shop = ORM::factory('shop', 153);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'KupiVIP - '.$n."\n";
echo "---\n";

// AGNES
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=6571&format=xml'; 
$shop = ORM::factory('shop', 10695);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'AGNES - '.$n."\n";
echo "---\n";

// OTTO
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3601&format=xml'; 
$shop = ORM::factory('shop', 3601);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'OTTO - '.$n."\n";
echo "---\n";

// LAWINE
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5221&format=xml'; 
$shop = ORM::factory('shop', 5221);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'LAWINE - '.$n."\n";
echo "---\n";

// Shop Couture
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4999&format=xml'; 
$shop = ORM::factory('shop', 4999);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Shop Couture - '.$n."\n";
echo "---\n";

// ModaSkidka
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3564&format=xml'; 
$shop = ORM::factory('shop', 3564);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'ModaSkidka - '.$n."\n";
echo "---\n";

// NAME'S
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2121&format=xml'; 
$shop = ORM::factory('shop', 2121);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'NAME\'S - '.$n."\n";
echo "---\n";

// TomTailor
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2777&format=xml'; 
$shop = ORM::factory('shop', 2777);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'TomTailor - '.$n."\n";
echo "---\n";

// Black Star
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2039&format=xml'; 
$shop = ORM::factory('shop', 2039);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Black Star - '.$n."\n";
echo "---\n";

// VipBikini
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5458&format=xml'; 
$shop = ORM::factory('shop', 5458);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'VipBikini - '.$n."\n";
echo "---\n";

// Carlo Pazolini
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=10674&format=xml'; 
$shop = ORM::factory('shop', 10674);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Carlo Pazolini - '.$n."\n";
echo "---\n";

// Kickz4u
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1600&format=xml'; 
$shop = ORM::factory('shop', 1600);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Kickz4u - '.$n."\n";
echo "---\n";

// Proskater
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1186&format=xml'; 
$shop = ORM::factory('shop', 1186);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Proskater - '.$n."\n";
echo "---\n";

// MercLondon
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=8878&format=xml'; 
$shop = ORM::factory('shop', 8878);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'MercLondon - '.$n."\n";
echo "---\n";

// Mir vashey semye
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=9228&format=xml'; 
$shop = ORM::factory('shop', 9228);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Mir vashey semye - '.$n."\n";
echo "---\n";

// KitMall
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=8686&format=xml'; 
$shop = ORM::factory('shop', 8686);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'KitMall - '.$n."\n";
echo "---\n";

// ALBA
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3447&format=xml'; 
$shop = ORM::factory('shop', 3447);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'ALBA - '.$n."\n";
echo "---\n";

// FOREVERYDAY
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=8083&format=xml'; 
$shop = ORM::factory('shop', 8083);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'FOREVERYDAY - '.$n."\n";
echo "---\n";

// O'STIN
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=6454&format=xml'; 
$shop = ORM::factory('shop', 6454);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'O\'STIN - '.$n."\n";
echo "---\n";

// Lacoste
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=7775&format=xml'; 
$shop = ORM::factory('shop', 7775);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Lacoste - '.$n."\n";
echo "---\n";

// Trends Brands
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1780&format=xml'; 
$shop = ORM::factory('shop', 1780);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Trends Brands - '.$n."\n";
echo "---\n";

// MEXX
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2775&format=xml'; 
$shop = ORM::factory('shop', 2775);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'MEXX - '.$n."\n";
echo "---\n";

// TOPBRANDS
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1326&format=xml'; 
$shop = ORM::factory('shop', 1326);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'TOPBRANDS - '.$n."\n";
echo "---\n";

// Fixon.ru
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3809&format=xml'; 
$shop = ORM::factory('shop', 3809);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Fixon.ru - '.$n."\n";
echo "---\n";

// ProBall.ru
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2373&format=xml'; 
$shop = ORM::factory('shop', 2373);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'ProBall.ru - '.$n."\n";
echo "---\n";

// BUTIK
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1757&format=xml'; 
$shop = ORM::factory('shop', 1757);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'BUTIK - '.$n."\n";
echo "---\n";

// BashMag
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4905&format=xml'; 
$shop = ORM::factory('shop', 4905);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'BashMag - '.$n."\n";
echo "---\n";

// SVESTA
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4736&format=xml'; 
$shop = ORM::factory('shop', 4736);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'SVESTA - '.$n."\n";
echo "---\n";

// Snezhnaya koroleva
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4581&format=xml'; 
$shop = ORM::factory('shop', 4581);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Snezhnaya koroleva - '.$n."\n";
echo "---\n";

// Lacy
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2036&format=xml'; 
$shop = ORM::factory('shop', 2036);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Lacy - '.$n."\n";
echo "---\n";

// PEOPLE
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5220&format=xml'; 
$shop = ORM::factory('shop', 5220);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'PEOPLE - '.$n."\n";
echo "---\n";

// Concept Club
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=7065&format=xml'; 
$shop = ORM::factory('shop', 7065);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Concept Club - '.$n."\n";
echo "---\n";

// Vkostume
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5457&format=xml'; 
$shop = ORM::factory('shop', 5457);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Vkostume - '.$n."\n";
echo "---\n";

// SAVAGE
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3842&format=xml'; 
$shop = ORM::factory('shop', 3842);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'SAVAGE - '.$n."\n";
echo "---\n";

// SHOES
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=7817&format=xml'; 
$shop = ORM::factory('shop', 7817);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'SHOES - '.$n."\n";
echo "---\n";

// Drez
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3052&format=xml'; 
$shop = ORM::factory('shop', 3052);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Drez - '.$n."\n";
echo "---\n";

// Milavica
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=7234&format=xml'; 
$shop = ORM::factory('shop', 7234);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Milavica - '.$n."\n";
echo "---\n";

// Trendsport
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4291&format=xml'; 
$shop = ORM::factory('shop', 4291);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Trendsport - '.$n."\n";
echo "---\n";

// Mr.Kolgotoff
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4376&format=xml'; 
$shop = ORM::factory('shop', 4376);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Mr.Kolgotoff - '.$n."\n";
echo "---\n";

// SHOWROOMS
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=3761&format=xml'; 
$shop = ORM::factory('shop', 3761);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'SHOWROOMS - '.$n."\n";
echo "---\n";

// Hautelet
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=6891&format=xml'; 
$shop = ORM::factory('shop', 6891);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Hautelet - '.$n."\n";
echo "---\n";

// ASMC
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=8312&format=xml'; 
$shop = ORM::factory('shop', 8312);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'ASMC - '.$n."\n";
echo "---\n";

// LUBLU Kira Plastinina
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=10568&format=xml'; 
$shop = ORM::factory('shop', 10568);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'LUBLU Kira Plastinina - '.$n."\n";
echo "---\n";





// myToys 
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1041&format=xml';
$shop = ORM::factory('shop', 1041);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'myToys - '.$n."\n"; 
echo "---\n";

// Pult 
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=7381&format=xml';
$shop = ORM::factory('shop', 7381);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Pult - '.$n."\n"; 
echo "---\n";

// Yves Rocher 
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1667&format=xml';
$shop = ORM::factory('shop', 1667);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Yves Rocher - '.$n."\n"; 
echo "---\n";

// DetMir
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2985&format=xml';
$shop = ORM::factory('shop', 2985);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'DetMir - '.$n."\n"; 
echo "---\n";

// Akusherstvo
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2930&format=xml';
$shop = ORM::factory('shop', 2930);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Akusherstvo - '.$n."\n"; 
echo "---\n";

// DeoShop
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4224&format=xml';
$shop = ORM::factory('shop', 4224);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'DeoShop - '.$n."\n"; 
echo "---\n";

// Mvideo
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=987&format=xml';
$shop = ORM::factory('shop', 987);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Mvideo - '.$n."\n"; 
echo "---\n";

// Sotmarket
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=232&format=xml';
$shop = ORM::factory('shop', 232);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Sotmarket - '.$n."\n"; 
echo "---\n";

// TehnoSila
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=2025&format=xml';
$shop = ORM::factory('shop', 2025);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'TehnoSila - '.$n."\n"; 
echo "---\n";

// HomeMe
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=5651&format=xml';
$shop = ORM::factory('shop', 5651);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'HomeMe - '.$n."\n"; 
echo "---\n";

// Holodilnik
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1882&format=xml';
$shop = ORM::factory('shop', 1882);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Holodilnik - '.$n."\n"; 
echo "---\n";

// Eldorado
$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=1504&format=xml';
$shop = ORM::factory('shop', 10729);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'Eldorado - '.$n."\n"; 
echo "---\n";


// ASOS
/*$url = 'http://export.admitad.com/ru/webmaster/websites/121512/products/export_adv_products/?user=Sianukvil&code=bc752de506&advcampaign_id=4965&format=xml'; 
$shop = ORM::factory('shop', 4965);
$n = Model_ProductParser_Admitad::instance()->parse($url, $shop);
echo 'ASOS - '.$n."\n";
echo "---\n";  */     
 
echo "ok\n";